package com.itheima.domain;

import java.io.Serializable;

public class User implements Serializable {
    private String username;
    private String passworld;
    private Pow pow;

    private static final long serialVersionUID = 83452581122892189L;

    public User() {
    }

    public User(String username, String passworld, Pow pow) {
        this.username = username;
        this.passworld = passworld;
        this.pow = pow;
    }

    public User(String username, String passworld, String pow) {
        this.username = username;
        this.passworld = passworld;
        this.pow = Enum.valueOf(Pow.class,pow);
    }

    @Override
    public String toString() {
        return  username + ',' +passworld + ',' + pow;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassworld() {
        return passworld;
    }

    public void setPassworld(String passworld) {
        this.passworld = passworld;
    }

    public Pow getPow() {
        return pow;
    }

    public void setPow(Pow pow) {
        this.pow = pow;
    }
}
